package com.ruoyi.sys.assets.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.sys.personnel.entity.User;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 资产管理/资产列表/设备台账
 */
@Data
@TableName("tb_equipment_parameter")
public class TbEquipmentParameter {
    @TableId(value = "ep_id",type = IdType.AUTO)
    private Integer epId;
    @TableField("ep_eid")
    private Integer epEid;
    @TableField("ep_oid")
    private Integer epOid;
    @TableField("ep_name")
    private String epName;
    @TableField("ep_location")
    private Integer epLocation;
    @TableField("ep_type")
    private Integer epType;
    @TableField("ep_detailed")
    private String epDetailed;
    @TableField("ep_model")
    private String epModel;
    @TableField("ep_brand")
    private String epBrand;
    @TableField("ep_buytime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date epBuytime;
    @TableField("ep_usetime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date epUsetime;
    @TableField("ep_maintenancetime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date epMaintenancetime;
    @TableField("ep_maintenance")
    private String epMaintenance;
    @TableField("u_id")
    private Integer uId;
    @TableField("ep_state")
    private Integer epState;
    @TableField("ep_qr_code")
    private String epQrCode;
    @TableField("ep_yn")
    private Integer epYn;

    private User user;

}
